home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / gamesmaster / includes / games / sound.e < prev    next >
Encoding:
Text File  |  1996-09-13  |  2.9 KB  |  152 lines

  1. /*
  2. **    $VER: sound.e 0.3 (08.09.96)
  3. **    Includes Release xx.xx
  4. **
  5. **    games library sound structures
  6. **
  7. **    (C) Copyright 1996 DreamWorld Productions.
  8. **        All Rights Reserved
  9. */
  10.  
  11. OPT MODULE
  12. OPT EXPORT
  13.  
  14. CONST SMV1 = $534d5631
  15.  
  16. OBJECT sound
  17.        version  :LONG        -> "SMV1" 
  18.        stats    :LONG        -> Reserved.
  19.        channel  :INT         -> Channel, 0-3 
  20.        priority :INT         -> Priority, 0-127 
  21.        header   :LONG        -> Ptr to sample info header, if any 
  22.        data     :LONG        -> Address of sample data 
  23.        length   :LONG        -> Length of sample data in WORDS 
  24.        octave   :INT         -> Octave/Note setting 
  25.        volume   :INT         -> Volume of sample (1 - 100) 
  26.        file     :LONG        -> Sound attributes (SBIT8/SBIT16) 
  27. ENDOBJECT
  28.  
  29. -> Flags for SAM_Channel 
  30.  
  31. CONST CHANNEL_ALL = -1, -> Search for first available channel 
  32.       CHANNEL1    = 0,  -> Channel 1 (left speaker) 
  33.       CHANNEL2    = 1,  -> Channel 2 (right speaker) 
  34.       CHANNEL3    = 2,  -> Channel 3 (left speaker) 
  35.       CHANNEL4    = 3   -> Channel 4 (right speaker) 
  36.  
  37. -> Flags for SAM_Attrib 
  38.  
  39. CONST SBIT8   = $00000000,  -> Sound data is 8 bit 
  40.       SBIT16  = $00000001,  -> Sound data is 16 bit 
  41.       SMODVOL = $00000002,  -> Modulate volume with next channel 
  42.       SMODPER = $00000004,  -> Modulate period with next channel 
  43.       SREPEAT = $00000008,  -> Repeat sample forever 
  44.       SEMPTY  = $00000010   -> Play only if channel is empty
  45.  
  46. -> Octave definitions for SAM_Octave.  An 'S' at the end of an octave
  47. -> definition indicates a sharp note.
  48.  
  49. CONST OCT_G0S =    0,
  50.  OCT_G0 =    2,
  51.  OCT_F0S =    4,
  52.  OCT_F0 =    6,
  53.  OCT_E0 =    8,
  54.  OCT_D0S =    10,
  55.  OCT_D0 =    12,
  56.  OCT_C0S =    14,
  57.  OCT_C0 =    16,
  58.  OCT_B0 =    18,
  59.  OCT_A0S =    20,
  60.  OCT_A0 =    22,
  61.  
  62.  OCT_G1S =    24,
  63.  OCT_G1 =    26,
  64.  OCT_F1S =    28,
  65.  OCT_F1 =    30,
  66.  OCT_E1 =    32,
  67.  OCT_D1S =    34,
  68.  OCT_D1 =    36,
  69.  OCT_C1S =    38,
  70.  OCT_C1 =    40,
  71.  OCT_B1 =    42,
  72.  OCT_A1S =    44,
  73.  OCT_A1 =    46,
  74.  
  75.  OCT_G2S =    48,
  76.  OCT_G2 =    50,
  77.  OCT_F2S =    52,
  78.  OCT_F2 =    54,
  79.  OCT_E2 =    56,
  80.  OCT_D2S =    58,
  81.  OCT_D2 =    60,
  82.  OCT_C2S =    62,
  83.  OCT_C2 =    64,
  84.  OCT_B2 =    66,
  85.  OCT_A2S =    68,
  86.  OCT_A2 =    70,
  87.  
  88.  OCT_G3S =    72,
  89.  OCT_G3 =    74,
  90.  OCT_F3S =    76,
  91.  OCT_F3 =    78,
  92.  OCT_E3 =    80,
  93.  OCT_D3S =    82,
  94.  OCT_D3 =    84,
  95.  OCT_C3S =    86,
  96.  OCT_C3 =    88,
  97.  OCT_B3 =    90,
  98.  OCT_A3S =    92,
  99.  OCT_A3 =    94,
  100.  
  101.  OCT_G4S =    96,
  102.  OCT_G4 =    98,
  103.  OCT_F4S =    100,
  104.  OCT_F4 =    102,
  105.  OCT_E4 =    104,
  106.  OCT_D4S =    106,
  107.  OCT_D4 =    108,
  108.  OCT_C4S =    110,
  109.  OCT_C4 =    112,
  110.  OCT_B4 =    114,
  111.  OCT_A4S =    116,
  112.  OCT_A4 =    118,
  113.  
  114.  OCT_G5S =    120,
  115.  OCT_G5 =    122,
  116.  OCT_F5S =    124,
  117.  OCT_F5 =    126,
  118.  OCT_E5 =    128,
  119.  OCT_D5S =    130,
  120.  OCT_D5 =    132,
  121.  OCT_C5S =    134,
  122.  OCT_C5 =    136,
  123.  OCT_B5 =    138,
  124.  OCT_A5S =    140,
  125.  OCT_A5 =    142,
  126.  
  127.  OCT_G6S =    144,
  128.  OCT_G6 =    146,
  129.  OCT_F6S =    148,
  130.  OCT_F6 =    150,
  131.  OCT_E6 =    152,
  132.  OCT_D6S =    154,
  133.  OCT_D6 =    156,
  134.  OCT_C6S =    158,
  135.  OCT_C6 =    160,
  136.  OCT_B6 =    162,
  137.  OCT_A6S =    164,
  138.  OCT_A6 =    166,
  139.  
  140.  OCT_G7S =    168,
  141.  OCT_G7 =    170,
  142.  OCT_F7S =    172,
  143.  OCT_F7 =    174,
  144.  OCT_E7 =    176,
  145.  OCT_D7S =    178,
  146.  OCT_D7 =    180,
  147.  OCT_C7S =    182,
  148.  OCT_C7 =    184,
  149.  OCT_B7 =    186,
  150.  OCT_A7S =    188
  151.  
  152.